{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">交易管理</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">

                <form class="layui-form layui-form-pane" action="{:url('admin/UsedDeal/index')}" method="get">
                    <div class="layui-inline">
                        <label class="layui-form-label">信息编号</label>
                        <div class="layui-input-inline">
                            <input type="text" name="coding" value="{$coding}" placeholder="请输入信息编号" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn">搜索</button>
                    </div>
                </form>
                <hr>
                <!-- <form action="" method="post" class="ajax-form"> -->
                <!-- <button type="button" class="layui-btn layui-btn-danger layui-btn-small ajax-action" data-action="{:url('admin/UsedDeal/delete')}">删除</button> -->
                <table class="layui-table">
                    <thead>
                    <tr>
                        <!-- <th style="width: 15px;"><input type="checkbox" class="check-all"></th> -->
                        <th style="width: 30px;">ID</th>
                        <th>信息编号</th>
                        <th>卖家手机</th>
                        <th>买家手机</th>
                        <th>成交价(万)</th>
                        <th>交易时间</th>
                        <th>交易处理人</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="useddeal_list" item="vo"}
                    <tr>
                        <!-- <td><input type="checkbox" name="ids[]" value="{$vo.id}"> -->
                        <td>{$vo.id}</td>
                        <td>{$vo.coding}</td>
                        <td>{if $vo.sell}{$vo.sell}{else /}无(后台信息){/if}</td>
                        <td>{$vo.buy}</td>
                        <td>{$vo.price}</td>
                        <td>{$vo.create_time}</td>
                        <td>{$vo.deal_man}</td>                             
                        <td>
                            <a href="{:url('admin/UsedDeal/reading',['id'=>$vo['id']])}" class="layui-btn layui-btn-normal layui-btn-mini">查看详情</a>
                            <!-- <a href="{:url('admin/UsedDeal/delete',['id'=>$vo['id']])}" class="layui-btn layui-btn-danger layui-btn-mini ajax-delete">删除</a> -->
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <!--分页-->
                {$useddeal_list->render()}
                <!-- </form> -->
            </div>
        </div>
    </div>
</div>
{/block}